using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Instedd.Labs.Geo.Web.UI.WebControls
{
    [DefaultProperty("Text")]
    [ToolboxData("<{0}:LatLong runat=server></{0}:LatLong>")]
    public class LatLong : WebControl
    {
        [Bindable(true)]
        [Category("Appearance")]
        [DefaultValue("")]
        [Localizable(true)]
        public string Text
        {
            get
            {
                String s = (String)ViewState["Text"];
                return ((s == null) ? String.Empty : s);
            }

            set
            {
                ViewState["Text"] = value;
            }
        }

        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
        }
        protected override void RenderContents(HtmlTextWriter output)
        {
            output.Write("<div>");
                output.Write("<div id='"+this.ClientID+"_viewDecimalLatLong'>");
                output.Write("");
                output.Write("</div>");
                output.Write("<div id='" + this.ClientID + "_viewDMSLatLong'>");
                output.Write("");
                output.Write("</div>");
            output.Write("</div>");
        }
    }
}
